<extend name="Layout:layout_content" />
<block name="body_main">
    <div class="grid-parent xsui-page-header">
        <div class="grid-60 mobile-grid-100 grid-parent">
            <a href="{:U('advert_edit')}" class="xsui-btn ui-state-default lnk-add-dialog"><i class="fa fa-plus"></i>新增</a>
            <a href="{:U('advert_export')}" class="xsui-btn ui-state-default"><i class="fa fa-save"></i>导出</a>
            <a href="{:U('advert_delete3','id=varkey')}" class="xsui-btn ui-state-default lnk-remove" data-options="prompt_value:'yes',prompt_message:'您将删除{n}条记录,为防止错误删除,请输入命令[yes]'"><i class="fa fa-remove"></i>批量删除</a>
        </div>
        <div class="grid-40 mobile-grid-100 grid-parent xsui-text-right">
            <a href="#" class="xsui-btn ui-state-default lnk-refresh"><i class="fa fa-refresh"></i>刷新</a>
            <span class="xsui-input-group">
                <form method="get">
                    <input type="text" name="search_key" value="{$search.search_key}" placeholder="名称/英文名称" />
                    <button type="submit" class="ui-state-default"><i class="fa fa-search"></i>搜索</button><button id="btn-search-dialog" class="ui-state-default xsui-icon-only" title="高级搜索"><i class="fa fa-gear"></i></button>
                </form>
            </span>
        </div>
        <div id="search-dialog" class="xsui-hidden">
            <form method="get" class="xsui-form">
                <div class="xsui-form-field">
                    <label>类型：</label><input type="text" name="type" value="{$search.user_name}" />
                </div>
                <div class="xsui-form-field">
                    <label>分组：</label><input type="text" name="group" value="{$search.site_id}" />
                </div>
                <button type="submit">保存</button>
            </form>
        </div>
    </div>
    <div id="grid-container" data-url="__ACTION__">
        {$content}
    </div>
</block>
<block name="body_after">    
    <script type="text/javascript">
        $(function () {
            
            
            
        })
    </script>
</block>